package com.youyunsoft.commons.rx.Interceptor;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class CookieReadInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {


        Request.Builder builder = chain.request().newBuilder();

//        String header = (String) SPUtils.get("LOGIN_COOKIE", "");
//        if (!TextUtils.isEmpty(header)) {
//            builder.addHeader("Cookie", header);
//
////            LogUtil.e("cookie read:"+header);
//        }


        return chain.proceed(builder.build());

    }
}
